package com.ly.heart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.common.core.domain.AjaxResult;
import com.ly.heart.domain.KingAllocateInfoEntity;

import java.util.List;

/**
 * new调拨单Service接口
 * 
 * @author wutao
 * @date 2024-08-07
 */
public interface IKingAllocateInfoService extends IService<KingAllocateInfoEntity>
{
    /**
     * 查询new调拨单
     * 
     * @param id new调拨单ID
     * @return new调拨单
     */
    public KingAllocateInfoEntity selectErpKingAllocateInfoById(String id);

    /**
     * 查询new调拨单列表
     * 
     * @param erpKingAllocateInfo new调拨单
     * @return new调拨单集合
     */
    public List<KingAllocateInfoEntity> selectErpKingAllocateInfoList(KingAllocateInfoEntity erpKingAllocateInfo);

    /**
     * 新增new调拨单
     * 
     * @param erpKingAllocateInfo new调拨单
     * @return 结果
     */
    public AjaxResult insertErpKingAllocateInfo(KingAllocateInfoEntity addKingAllocateInfoDto);

    /**
     * 暂存金蝶-调拨单
     * @param kingAllocateInfoEntity
     * @return
     */
    AjaxResult draft(KingAllocateInfoEntity kingAllocateInfoEntity);

    /**
     * 保存提交金蝶-调拨单
     * @param kingAllocateInfoEntity
     * @return
     */
    AjaxResult submit(KingAllocateInfoEntity kingAllocateInfoEntity);

    boolean approvedAllocate(KingAllocateInfoEntity kingAllocateInfoEntity);
    /**
     * 修改new调拨单
     * 
     * @param erpKingAllocateInfo new调拨单
     * @return 结果
     */
    public int updateErpKingAllocateInfo(KingAllocateInfoEntity erpKingAllocateInfo);

    /**
     * 批量删除new调拨单
     * 
     * @param ids 需要删除的new调拨单ID
     * @return 结果
     */
    public int deleteErpKingAllocateInfoByIds(String[] ids);

    /**
     * 删除new调拨单信息
     * 
     * @param id new调拨单ID
     * @return 结果
     */
    public int deleteErpKingAllocateInfoById(String id);
}
